\n
\n
\n

\n
\n
\n
\n "+t.get(w.purchaseSucceededMessage,{assetName:n.assetName})+"\n "+a+"\n
\n
",a=n.assetType!==P.GAME_PASS?t.get(w.equipMyAvatarAction,{}):t.get(w.okAction,{});b.Dialog.open({titleText:t.get(w.purchaseSucceededHeading,{}),bodyContent:e,declineText:t.get(w.backToShopAction,{}),acceptText:a,acceptColor:"btn-primary-md",onAccept:function(){S.paymentFlowAnalyticsService.sendUserPurchaseFlowEvent(S.paymentFlowAnalyticsService.ENUM_TRIGGERING_CONTEXT.WEB_CATALOG_ROBUX_UPSELL,!0,S.paymentFlowAnalyticsService.ENUM_VIEW_NAME.SUCCESS,S.paymentFlowAnalyticsService.ENUM_PURCHASE_EVENT_TYPE.USER_INPUT,S.paymentFlowAnalyticsService.ENUM_VIEW_MESSAGE.OK,{item_type:n.assetType,item_id:n.productId},!0),H(C.AutoPurchaseSucceedEquipMyAvatar,n.assetType);var e,t=n.itemPath;return b.Endpoints&&b.Endpoints.supportLocalizedUrls&&(t=b.Endpoints.removeUrlLocale(t)),n.assetType!==P.GAME_PASS?void 0!==(e=b.Endpoints.getAbsoluteUrl("/my/avatar"))&&""!==e&&(S.upsellUtil.expireUpsellCookie(),window.location.href=e):t.startsWith(d)?te(n.itemPath+"?#!/store"):te(n.itemPath),!1},onDecline:function(){return r.show(),S.paymentFlowAnalyticsService.sendUserPurchaseFlowEvent(S.paymentFlowAnalyticsService.ENUM_TRIGGERING_CONTEXT.WEB_CATALOG_ROBUX_UPSELL,!0,S.paymentFlowAnalyticsService.ENUM_VIEW_NAME.SUCCESS,S.paymentFlowAnalyticsService.ENUM_PURCHASE_EVENT_TYPE.USER_INPUT,S.paymentFlowAnalyticsService.ENUM_VIEW_MESSAGE.CANCEL,{item_type:n.assetType,item_id:n.productId},!0),H(C.AutoPurchaseSucceedBackToShop,n.assetType),te(n.itemPath),!1},onCancel:function(){return r.show(),S.paymentFlowAnalyticsService.sendUserPurchaseFlowEvent(S.paymentFlowAnalyticsService.ENUM_TRIGGERING_CONTEXT.WEB_CATALOG_ROBUX_UPSELL,!0,S.paymentFlowAnalyticsService.ENUM_VIEW_NAME.SUCCESS,S.paymentFlowAnalyticsService.ENUM_PURCHASE_EVENT_TYPE.USER_INPUT,S.paymentFlowAnalyticsService.ENUM_VIEW_MESSAGE.CANCEL,{item_type:n.assetType,item_id:n.productId},!0),H(C.AutoPurchaseSucceedClose,n.assetType),te(n.itemPath),!1},allowHtmlContentInBody:!0,allowHtmlContentInFooter:!1,fieldValidationRequired:!0,showDecline:n.assetType!==P.GAME_PASS,dismissable:!1,xToCancel:!0})}function me(e,t){b.Dialog.open({titleText:t.get(w.errorOccuredHeading,{}),bodyContent:t.get(w.purchaseErrorOccuredMessage,{}),imageUrl:e.alertImageUrl,acceptText:t.get(w.okAction,{}),acceptColor:"btn-secondary-md",declineColor:"btn-none",dismissable:!0,allowHtmlContentInBody:!0})}var fe=function(e,i,l,s){return new(l=l||Promise)(function(n,t){function r(e){try{o(s.next(e))}catch(e){t(e)}}function a(e){try{o(s.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof l?t:new l(function(e){e(t)})).then(r,a)}o((s=s.apply(e,i||[])).next())})},be=function(n,r){var a,o,i,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(a)throw new TypeError("Generator is already executing.");for(;l;)try{if(a=1,o&&(i=2&t[0]?o.return:t[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,t[1])).done)return i;switch(o=0,i&&(t=[2&t[0],i.value]),t[0]){case 0:case 1:i=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,o=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(i=0<(i=l.trys).length&&i[i.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!i||t[1]>i[0]&&t[1]